import request from './FileAxios'

export function getFilePage(data) {
    return request({
        url: `/test-file/filePage`,
        method: 'POST',
        data: data
    })
}

export function uploadFile(data) {
    return request({
        url: `/test-file/upload`,
        method: 'POST',
        data: data
    })
}

export function downloadFile(data) {
    return request({
        url: `/test-file/download`,
        method: 'GET',
        data: data
    })
}

export function removeFile(data) {
    return request({
        url: `/test-file/remove?fileId=${data.fileId}`,
        method: 'GET'
    })
}

export function verifyFile(data) {
    return request({
        url: `/test-file/verifyFile`,
        method: 'POST',
        data: data
    })
}

export async function breakpointUpload(data) {
    return request({
        url: `/test-file/breakpointUpload`,
        method: 'POST',
        data: data
    })
}